﻿using UnityEngine;
using UnityEngine.UIElements;

namespace winS.UnityEditor.UIElement
{
    public class HorizontalSplitline : EditorElement
    {
        public float height { get => style.minHeight.value.value; set => style.minHeight = value; }
        public Color color { get => style.backgroundColor.value; set => style.backgroundColor = value; }

        internal HorizontalSplitline(ElementFactory elementFactory) : base(elementFactory)
        {
            height = 1f;
            color = elementFactory.splitlineColor;
            style.flexDirection = FlexDirection.Row;
        }
    }
}